<template>
    <div id="AsnDetailList">
        <div class="detail">
            <component :data="{argument}" :is="currentComponent"></component>
        </div>
    </div>

</template>

<script>
import tableTitle from "commons/TableTitle";
import navMenu from "commons/NavMenu";
import baseMixin from "@/mixins/BaseMixin";
import config from "../Config"

export default {
    name: "DetailList",
    mixins: [baseMixin, config],
    data() {
        return {
            argument: {},
            selectData: [],
            detailNav: "1",
            componentConfig: [
                {
                    name: "Table",
                    label: "table",
                    component: () => import('./page/Table.vue')
                }
            ]
        }
    },
    computed: {
        btnConfig() {
            return []
        },
        currentComponent() {
            return this.componentConfig[this.detailNav - 1].component;
        }
    },
    methods: {
        //选中的数据
        setSelectData(data) {
            this.selectData = data;
        },
    },
    async mounted() {
    },
    components: {
        "v-tableTitle": tableTitle,
        "v-navMenu": navMenu,
    },
    watch: {
        selectData(data) {
            if (this.permissionStatus) {
                if (data.length > 0) {
                    this.deleteDetailStatus = false;
                } else {
                    this.deleteDetailStatus = true;
                }
            }
        }
    }
}
</script>

<style>
</style>
